Skip to content
Snippets Groups Projects
Commit 940e425a authored by Konstantin Schulz's avatar Konstantin Schulz
Browse files

additional logging for continuous integration in case of failed pipeline

parent 2b910b9d
No related branches found
No related tags found
No related merge requests found
Pipeline #11836 passed
...@@ -13,6 +13,7 @@ ci_frontend: ...@@ -13,6 +13,7 @@ ci_frontend:
artifacts: artifacts:
paths: paths:
- ci_frontend.log - ci_frontend.log
when: always
ci_backend: ci_backend:
stage: ci stage: ci
script: script:
...@@ -20,6 +21,7 @@ ci_backend: ...@@ -20,6 +21,7 @@ ci_backend:
artifacts: artifacts:
paths: paths:
- ci_backend.log - ci_backend.log
when: always
coverage: coverage:
stage: coverage stage: coverage
script: script:
...@@ -28,4 +30,5 @@ coverage: ...@@ -28,4 +30,5 @@ coverage:
artifacts: artifacts:
paths: paths:
- coverage.log - coverage.log
when: always
coverage: '/Statements.*?(\d+(?:\.\d+)?)%/' coverage: '/Statements.*?(\d+(?:\.\d+)?)%/'
...@@ -23,6 +23,7 @@ import {TextRange} from './models/textRange'; ...@@ -23,6 +23,7 @@ import {TextRange} from './models/textRange';
import Spy = jasmine.Spy; import Spy = jasmine.Spy;
import {AnnisResponse, NodeMC} from '../../openapi'; import {AnnisResponse, NodeMC} from '../../openapi';
import {Phenomenon} from '../../openapi'; import {Phenomenon} from '../../openapi';
import {Subscription} from 'rxjs';
describe('CorpusService', () => { describe('CorpusService', () => {
let httpClient: HttpClient; let httpClient: HttpClient;
...@@ -251,12 +252,17 @@ describe('CorpusService', () => { ...@@ -251,12 +252,17 @@ describe('CorpusService', () => {
it('should initialize the current corpus', fakeAsync(() => { it('should initialize the current corpus', fakeAsync(() => {
helperService.applicationState.next(new ApplicationState()); helperService.applicationState.next(new ApplicationState());
let corpus: CorpusMC = {source_urn: ''}; let corpus: CorpusMC = {source_urn: ''};
const subscriptions: Subscription[] = [];
function initCorpus(): void { function initCorpus(): void {
subscriptions.forEach((sub: Subscription, idx: number, subList: Subscription[]) => {
sub.unsubscribe();
delete subList[idx];
});
corpusService.initCurrentCorpus().then(() => { corpusService.initCurrentCorpus().then(() => {
corpusService.currentCorpus.subscribe((cc: CorpusMC) => { subscriptions.push(corpusService.currentCorpus.subscribe((cc: CorpusMC) => {
corpus = cc; corpus = cc;
}); }));
}); });
flushMicrotasks(); flushMicrotasks();
} }
......
...@@ -29,7 +29,7 @@ export default class MockMC { ...@@ -29,7 +29,7 @@ export default class MockMC {
}; };
static applicationState: ApplicationState = new ApplicationState({ static applicationState: ApplicationState = new ApplicationState({
currentSetup: new TextData({ currentSetup: new TextData({
currentCorpus: {citations: {}, source_urn: ''}, currentCorpus: {citations: {}, source_urn: 'exampleUrn'},
currentTextRange: new TextRange({start: ['1', '2'], end: ['1', '2']}) currentTextRange: new TextRange({start: ['1', '2'], end: ['1', '2']})
}), }),
mostRecentSetup: new TextData({ mostRecentSetup: new TextData({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment