Skip to content

Commit

Permalink
feat: create new Test Results category (#7218)
Browse files Browse the repository at this point in the history
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
  • Loading branch information
calebcartwright and repo-ranger[bot] committed Nov 5, 2021
1 parent 002333f commit 6dc8aac
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions services/appveyor/appveyor-tests.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const commonPreviewProps = {
}

export default class AppVeyorTests extends AppVeyorBase {
static category = 'test-results'
static route = {
...this.buildRoute('appveyor/tests'),
queryParamSchema: testResultQueryParamSchema,
Expand Down
3 changes: 1 addition & 2 deletions services/azure-devops/azure-devops-tests.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ const buildTestResultSummarySchema = Joi.object({
}).required()

export default class AzureDevOpsTests extends AzureDevOpsBase {
static category = 'build'

static category = 'test-results'
static route = {
base: 'azure-devops/tests',
pattern: ':organization/:project/:definitionId/:branch*',
Expand Down
1 change: 1 addition & 0 deletions services/categories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export default [
{ id: 'build', name: 'Build', keywords: ['build'] },
{ id: 'coverage', name: 'Code Coverage', keywords: ['coverage'] },
{ id: 'test-results', name: 'Test Results', keywords: ['tests'] },
{ id: 'analysis', name: 'Analysis', keywords: ['analysis'] },
{ id: 'chat', name: 'Chat', keywords: ['chat'] },
{ id: 'dependencies', name: 'Dependencies', keywords: ['dependencies'] },
Expand Down
3 changes: 1 addition & 2 deletions services/jenkins/jenkins-tests.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ const schema = Joi.object({
}).required()

export default class JenkinsTests extends JenkinsBase {
static category = 'build'

static category = 'test-results'
static route = {
base: 'jenkins',
pattern: 'tests',
Expand Down
3 changes: 1 addition & 2 deletions services/sonar/sonar-tests.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import {
} from './sonar-helpers.js'

class SonarTestsSummary extends SonarBase {
static category = 'build'

static category = 'test-results'
static route = {
base: 'sonar/tests',
pattern: ':component/:branch*',
Expand Down
2 changes: 1 addition & 1 deletion services/testspace/testspace-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const schema = Joi.array()
// Project is generally a repository
// Space is a container, often a branch
export default class TestspaceBase extends BaseJsonService {
static category = 'build'
static category = 'test-results'
static defaultBadgeData = { label: 'tests' }

async fetch({ org, project, space }) {
Expand Down

0 comments on commit 6dc8aac

Please sign in to comment.