22 Commits

Author SHA1 Message Date
Arne Vandoorslaer
dd5b496f1d
fix: Fix issue when there are multiple values for the same CLI parameter
* fix: added check for multiple values for the same option

* Update test/unit/init/CliRunner.test.ts

Co-authored-by: Ruben Verborgh <ruben@verborgh.org>

* fix: made CliRunner.run sync

Co-authored-by: Ruben Verborgh <ruben@verborgh.org>
2021-03-05 11:00:24 +01:00
Arthur Joppart
1589def066
fix: Error when unknown parameters are passed to the main executable
* bug: error when unknown parameters are passed to the main executable

* bug: error on unknown paramters and adapted to review

* fix: test wont pass in ci

* Update src/init/CliRunner.ts

Co-authored-by: Ruben Verborgh <ruben@verborgh.org>

* fix: adapted to review

* fix: made CliRunner.run async

Co-authored-by: Arne Vandoorslaer <arne@digita.ai>
Co-authored-by: Ruben Verborgh <ruben@verborgh.org>
2021-03-04 11:41:13 +01:00
Joachim Van Herwegen
e500a82680 feat: Create configurations to integrate dynamic pod creation 2021-03-02 11:47:07 +01:00
Joachim Van Herwegen
cf6270d161 fix: Accept absolute paths in CliRunner 2021-01-19 10:54:37 +01:00
Joachim Van Herwegen
af88e130ff test: Always collect coverage
But only set the threshold when running unit tests specifically.
This way coverage for single classes can easily be tested.
2021-01-18 13:38:28 +01:00
Ruben Verborgh
a5413a64d3 refactor: Move pod templates to pod subfolder. 2021-01-15 12:43:34 +01:00
Joachim Van Herwegen
9160b52d5b refactor: Remove toSystemFilePath 2021-01-14 16:14:30 +01:00
Ruben Taelman
748476afbb refactor: Update to Components.js 4 2021-01-14 13:38:42 +01:00
Ruben Verborgh
f454b781ff fix: Join and normalize paths consistently. 2021-01-04 16:52:17 +01:00
Ruben Verborgh
c41c41d0e9 fix: Ensure root file path is absolute. 2021-01-01 18:57:21 +01:00
Ruben Verborgh
ba4f7ff26c feat: Add mainModulePath and globalModules CLI flags. 2021-01-01 18:25:35 +01:00
Ruben Verborgh
49551eb9eb fix: Distinguish instantiation and initialization errors. 2021-01-01 16:37:16 +01:00
Ruben Verborgh
73ae0c69e9 test: Remove mock error from test results.
Fixes https://github.com/solid/community-server/issues/406
2020-12-08 11:05:03 +01:00
Ruben Verborgh
badbe0032b refactor: Remove Setup. 2020-12-08 10:19:35 +01:00
Joachim Van Herwegen
1a043aca3f feat: integrate pod creation 2020-12-02 13:01:38 +01:00
Ruben Verborgh
eabe6bc4ed feat: Implement --baseUrl flag.
Closes https://github.com/solid/community-server/issues/372
2020-12-01 19:09:52 +01:00
Ruben Verborgh
528688bc4c refactor: Refactor runCli to take optional arguments. 2020-12-01 14:55:39 +01:00
Ruben Verborgh
c3b5387efb test: Test all CLI flags. 2020-12-01 14:41:19 +01:00
Joachim Van Herwegen
892b5f5921 feat: Create multiple configs supporting different store backends 2020-11-04 12:24:37 +01:00
Ruben Verborgh
4b4f737013 chore: Use Jest recommended linting. 2020-11-02 10:03:18 +01:00
smessie
99464d9a95
feat: Add logging
* feat: Add logging

* refactor: Configure the logger for the tests once globally

* feat: Add logging

* fix: Fix ESLint errors due to merge conflicts

* Review log and error messages.

* refactor: Cleanup a bit

* refactor: Change to logger info calls

Co-authored-by: Ruben Verborgh <ruben@verborgh.org>
2020-10-26 10:31:01 +01:00
smessie
e8e96b903d
test: Write unit tests for CliRunner
* test: Write unit tests for CliRunner

* test: fix Loader mock and add new mock and test

* test: Put function definition in beforeEach

* test: Add comments to code

* refactor: Move outsideResolve to setup call
2020-10-13 14:20:27 +02:00