mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 07:24:53 +09:00
Add fast-test and fast-cover npm scripts
Add alternate test and coverage scripts that skips tests that are slow.
This commit is contained in:
1 parent
5a9e2a8825
commit
fb2519cb50
3 files changed
+5
No files matched your search
@@ -73,6 +73,7 @@ describe("class factorioServer/index.js", ()=>{
|
||||
});
|
||||
describe(".createMap(mapName.zip)", ()=>{
|
||||
it("creates a map file as instanceDirectory/saves/map.zip", async function(){
|
||||
/* istanbul ignore if */ if (process.env.FAST_TEST) this.skip();
|
||||
this.timeout(20000); // these test often takes a lot of time in the map creation step (4500 ms on i3 dev system)
|
||||
let relativePath = path.relative('.', __dirname);
|
||||
let server = new factorioServer({
|
||||
@@ -91,6 +92,7 @@ describe("class factorioServer/index.js", ()=>{
|
||||
return true;
|
||||
});
|
||||
it("supports custom filenames", async function(){
|
||||
/* istanbul igoner if */ if (process.env.FAST_TEST) this.skip();
|
||||
this.timeout(20000);
|
||||
let relativePath = path.relative('.', __dirname);
|
||||
let server = new factorioServer({
|
||||
|
||||
Reference in new issue
Block a user