mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-17 05:47:58 +08:00
* __test: create geneset
* example dataset test geneset
* delete geneset test
* edit __test
* gene crud
* Update client/Makefile
Co-authored-by: Severiano Badajoz <sbadajoz@chanzuckerberg.com>
* copy gene sets separately
* make fix
* ignore test files locally
* csv update
* updated csvs
* fix unit tests for gene set load routes
* add missing fix to czi_hosted unit test
* pin tiledb version, for czi_hosted backend, to <0.9
* Revert tiledb pin to be less than 0.9. Broken tests have been updated in main branch.
* newline, gitignore
* color by and subset
* diffexp sets equal
* add diff exp test class
* fix data class
* diffexp snapshot
* snapshot
* snap3
* snapshot parentInnerhtml
* remove snap
* updated anno snaps
* add test class to gene list div
* new snapshots
* kick off
* Revert "kick off"
This reverts commit 743f551d55.
* remove import
* eol
* revert changes to csv re: gene tests
* global name
Co-authored-by: Severiano Badajoz <sbadajoz@chanzuckerberg.com>
Co-authored-by: bkmartinjr <bruce@chanzuckerberg.com>
Co-authored-by: Arathi Mani <arathi.mani@chanzuckerberg.com>
Co-authored-by: maniarathi <mani.arathi@gmail.com>
62 lines
1.8 KiB
Makefile
62 lines
1.8 KiB
Makefile
include ../common.mk
|
|
|
|
ANNOTATIONS := $(if $(ANNOTATIONS),$(ANNOTATIONS),../backend/test/fixtures/pbmc3k-annotations.csv)
|
|
GENE_SETS := $(if $(GENE_SETS),$(GENE_SETS),../backend/test/fixtures/pbmc3k-genesets.csv)
|
|
ANNOTATIONS_FILENAME := $(shell basename $(ANNOTATIONS))
|
|
GENE_SETS_FILENAME := $(shell basename $(GENE_SETS))
|
|
|
|
CXG_CONFIG := $(if $(CXG_CONFIG), $(CXG_CONFIG), ./__tests__/e2e/test_config.yaml)
|
|
|
|
|
|
# Packaging
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf node_modules
|
|
rm -f __tests__/screenshots/*.png
|
|
|
|
.PHONY: ci
|
|
ci:
|
|
npm ci
|
|
|
|
.PHONY: install
|
|
install:
|
|
npm install
|
|
|
|
.PHONY: build
|
|
WEBPACK_CONFIG ?= configuration/webpack/webpack.config.prod.js
|
|
build:
|
|
npm run build $(WEBPACK_CONFIG)
|
|
|
|
# Development convenience methods
|
|
.PHONY: start-frontend
|
|
start-frontend:
|
|
node server/development.js
|
|
|
|
# start an instance of cellxgene and run the end-to-end tests
|
|
.PHONY: smoke-test
|
|
smoke-test:
|
|
start_server_and_test \
|
|
'CXG_OPTIONS="--config-file $(CXG_CONFIG)" $(MAKE) start-server' \
|
|
$(CXG_SERVER_PORT) \
|
|
'CXG_URL_BASE="http://localhost:$(CXG_SERVER_PORT)" CXG_AUTH_TYPE="test" npm run e2e -- --verbose false'
|
|
|
|
# start an instance of cellxgene and run the end-to-end annotations tests
|
|
.PHONY: smoke-test-annotations
|
|
smoke-test-annotations:
|
|
$(eval TMP_DIR := $(shell mktemp -d /tmp/cellxgene_XXXXXX))
|
|
cp $(ANNOTATIONS) $(TMP_DIR)/ && \
|
|
cp $(GENE_SETS) $(TMP_DIR)/ && \
|
|
start_server_and_test \
|
|
'CXG_OPTIONS="--annotations-file $(TMP_DIR)/$(ANNOTATIONS_FILENAME) --gene-sets-file $(TMP_DIR)/$(GENE_SETS_FILENAME)" $(MAKE) start-server' \
|
|
$(CXG_SERVER_PORT) \
|
|
'CXG_URL_BASE="http://localhost:$(CXG_SERVER_PORT)" npm run e2e-annotations -- --verbose false'
|
|
rm -rf $(TMP_DIR)
|
|
|
|
.PHONY: unit-test
|
|
unit-test:
|
|
node node_modules/jest/bin/jest.js --testPathIgnorePatterns e2e
|
|
|
|
# pass remaining commands through to npm run
|
|
%:
|
|
npm run $(*)
|