Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
26376d30
Commit
26376d30
authored
9 years ago
by
Cam Saul
Browse files
Options
Downloads
Patches
Plain Diff
default to just testing against generic-sql
parent
fc93ade6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
circle.yml
+6
-1
6 additions, 1 deletion
circle.yml
test/metabase/test/data/datasets.clj
+5
-5
5 additions, 5 deletions
test/metabase/test/data/datasets.clj
with
11 additions
and
6 deletions
circle.yml
+
6
−
1
View file @
26376d30
...
...
@@ -4,5 +4,10 @@ machine:
oraclejdk8
test
:
override
:
-
case $CIRCLE_NODE_INDEX in 0) lein test ;; 1) MB_DB_TYPE=postgres MB_DB_DBNAME=circle_test MB_DB_PORT=5432 MB_DB_USER=ubuntu MB_DB_HOST=localhost lein test ;; 2) lein eastwood ;; 3) ./lint_js.sh && lein bikeshed --max-line-length 240 ;; 4) lein uberjar ;; esac
:
# 0) runs unit tests w/ H2 local DB. Runs against both Mongo + H2 test datasets
# 1) runs unit tests w/ Postgres local DB. Only runs against H2 test dataset so we can be sure tests work in either scenario
# 2) runs Eastwood linter
# 3) runs JS linter + Bikeshed linter
# 4) Runs lein uberjar
-
case $CIRCLE_NODE_INDEX in 0) MB_TEST_DATASETS=generic-sql,mongo lein test ;; 1) MB_DB_TYPE=postgres MB_DB_DBNAME=circle_test MB_DB_PORT=5432 MB_DB_USER=ubuntu MB_DB_HOST=localhost lein test ;; 2) lein eastwood ;; 3) ./lint_js.sh && lein bikeshed --max-line-length 240 ;; 4) lein uberjar ;; esac
:
parallel
:
true
This diff is collapsed.
Click to expand it.
test/metabase/test/data/datasets.clj
+
5
−
5
View file @
26376d30
...
...
@@ -96,13 +96,13 @@
;; # Logic for determining which datasets to test against
;; By default, we'll test against
*all*
dataset
s
; otherwise, you can
test against only a
;;
subset of them
by setting the env var `MB_TEST_DATASETS` to a comma-separated list of d
river
names, e.g.
;; By default, we'll test against
against only the :generic-sql (H2)
dataset; otherwise, you can
specify which
;;
datasets to test against
by setting the env var `MB_TEST_DATASETS` to a comma-separated list of d
ataset
names, e.g.
;;
;; # test against :generic-sql and :mongo
;; MB_TEST_DATASETS=generic-sql,mongo
;;
;; # just test against :generic-sql
;; # just test against :generic-sql
(default)
;; MB_TEST_DATASETS=generic-sql
(
defn-
get-test-datasets-from-env
...
...
@@ -121,9 +121,9 @@
(
def
test-dataset-names
"Delay that returns set of names of drivers we should run tests against.
By default, this returns
*all* drivers
, but can be overriden by setting env var `MB_TEST_DATASETS`."
By default, this returns
only `:generic-sql`
, but can be overriden by setting env var `MB_TEST_DATASETS`."
(
delay
(
let
[
datasets
(
or
(
get-test-datasets-from-env
)
all-valid-dataset-names
)]
#
{
:generic-sql
}
)]
(
log/info
(
color/green
"Running QP tests against these datasets: "
datasets
))
datasets
)))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment