submodule for test collateral (#421)
* submodule for test collateral * remove test * comment * remove git module file * adding .gitmodule file
This commit is contained in:
Родитель
1e6037d924
Коммит
2e2b8f9f39
|
@ -0,0 +1,4 @@
|
||||||
|
[submodule "packages/test/snapshots/content"]
|
||||||
|
path = packages/test/snapshots/content
|
||||||
|
url = https://github.com/microsoft/FluidFrameworkTestData
|
||||||
|
branch = master
|
|
@ -1012,12 +1012,15 @@ export class ContainerRuntime extends EventEmitter implements IHostRuntime, IRun
|
||||||
snapshotTree = buildHierarchy(flattened);
|
snapshotTree = buildHierarchy(flattened);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Include the type of attach message which is the pkg of the component to be
|
||||||
|
// used by RemotedComponentContext in case it is not in the snapshot.
|
||||||
remotedComponentContext = new RemotedComponentContext(
|
remotedComponentContext = new RemotedComponentContext(
|
||||||
attachMessage.id,
|
attachMessage.id,
|
||||||
snapshotTree,
|
snapshotTree,
|
||||||
this,
|
this,
|
||||||
new DocumentStorageServiceProxy(this.storage, flatBlobs),
|
new DocumentStorageServiceProxy(this.storage, flatBlobs),
|
||||||
this.context.scope);
|
this.context.scope,
|
||||||
|
[attachMessage.type]);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"build:full": "npm run build",
|
"build:full": "npm run build",
|
||||||
"build:full:compile": "npm run build:compile",
|
"build:full:compile": "npm run build:compile",
|
||||||
"clean": "rimraf dist lib *.tsbuildinfo package-deps.json *.build.log",
|
"clean": "rimraf dist lib *.tsbuildinfo package-deps.json *.build.log",
|
||||||
"test:experimental": "node --experimental-worker ../../../node_modules/mocha/bin/_mocha --recursive dist/test",
|
"test": "node --experimental-worker ../../../node_modules/mocha/bin/_mocha --recursive dist/test",
|
||||||
"test:sequential": "node ../../../node_modules/mocha/bin/_mocha --recursive dist/test",
|
"test:sequential": "node ../../../node_modules/mocha/bin/_mocha --recursive dist/test",
|
||||||
"test:coverage": "nyc npm test -- --reporter mocha-junit-reporter --reporter-options mochaFile=nyc/junit-report.xml",
|
"test:coverage": "nyc npm test -- --reporter mocha-junit-reporter --reporter-options mochaFile=nyc/junit-report.xml",
|
||||||
"test:generate": "node --experimental-worker dist/generateSnapshotFiles.js",
|
"test:generate": "node --experimental-worker dist/generateSnapshotFiles.js",
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
import { ReplayArgs, ReplayTool } from "@microsoft/fluid-replay-tool";
|
import { ReplayArgs, ReplayTool } from "@microsoft/fluid-replay-tool";
|
||||||
import * as fs from "fs";
|
import * as fs from "fs";
|
||||||
|
|
||||||
const fileLocation: string = "content";
|
const fileLocation: string = "content/snapshotTestContent";
|
||||||
|
|
||||||
export enum Mode {
|
export enum Mode {
|
||||||
Write, // write out files
|
Write, // write out files
|
||||||
|
@ -113,6 +113,7 @@ export async function processContent(mode: Mode, concurrently = true) {
|
||||||
});
|
});
|
||||||
|
|
||||||
promises.push(work);
|
promises.push(work);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Promise.all(promises);
|
return Promise.all(promises);
|
||||||
|
|
|
@ -14,7 +14,7 @@ describe("Snapshots", function() {
|
||||||
return processContent(Mode.Stress);
|
return processContent(Mode.Stress);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("Backward Compat", async () => {
|
// it("Backward Compat", async () => {
|
||||||
return processContent(Mode.Compare);
|
// return processContent(Mode.Compare);
|
||||||
});
|
// });
|
||||||
});
|
});
|
||||||
|
|
Загрузка…
Ссылка в новой задаче