dart_testthat is exclusively used for this purpose. All of your projects will use this same database for running tests.
psqlcommand-line tool and enter the following SQL:
quiz_userhas access to. Now, add
quiz's data model to this database by running the following commands in the project directory:
migrations/that adds tables
_Answer, and the second command executes that migration file on the newly created database.
quizdatabase, run the following commands in
psqlto insert a question and answer:
quiz_sink.dart, create a
QuizSink's constructor to create its persistent store from configuration values:
config.yamlin the root of the project directory and add the following key-values pairs:
conduit serveand open a browser to
http://localhost:8888/questions- you'll see the question in your database. For other ways of running a Conduit application (and tips for running them remotely), take a look at the Deploy Conduit seciton of the docs.
conduit serve. In the test harness, the
configurationFilePathis set to
config.src.yaml. To continue running the tests, add the database connection configuration for
dart_testdatabase to the file