bigtestjs / server

All BigTest development has moved to https://github.com/thefrontside/bigtest
https://github.com/thefrontside/bigtest
2 stars 1 forks source link

Serve Test suite files #31

Closed cowboyd closed 4 years ago

cowboyd commented 4 years ago

The entire point of the bigtest server is to run tests, and so getting the suite bundled up and loaded into the test harness lies on the critical path. Based on the discussion of how test files will be loaded (#17) we now have a path to implementation.

  1. Test files will be built by a parcel process. We'll generate an index file which is will glob all of the test suites detected and then compose them into single test suite value which it will export by default.
  2. We'll watch for changes in then tests directory, and then re-write that index file, and restart the parcel process.
  3. The generated javascript bundle will be made available over http (potentially via parcel)

Questions

What is in the entry point index that allows the harness to "capture the test suite": e.g.

let suite = require('__bigtest_suite__');
window['@@bigtest/mailbox'].push({type: 'suite', suite});
cowboyd commented 4 years ago

closed by #51