Skip to content

Commit

Permalink
👷 (coverage) Configuration for unit test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Hadrien Froger committed Dec 9, 2024
1 parent 63101d4 commit e4817d4
Show file tree
Hide file tree
Showing 6 changed files with 1,395 additions and 1,358 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ group :test do
gem "rspec-rails", "~> 6.0"
gem "rubocop-faker"
gem "selenium-webdriver"
gem "simplecov-cobertura"
end

group :development do
Expand Down
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,7 @@ DEPENDENCIES
rubocop-faker
rubocop-rspec
selenium-webdriver
simplecov-cobertura
spring (~> 4.0)
spring-watcher-listen (~> 2.1)
uglifier (~> 4.1)
Expand Down
32 changes: 16 additions & 16 deletions contrib/decidim-node-client/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,17 @@ import {
*/
export interface ApiError {
/**
* Error code, starting with HTTP Code
* @type {number}
* @memberof ApiError
*/
error_code: number;
/**
* Error message
* Error title, starting with HTTP Code, like 400: bad request
* @type {string}
* @memberof ApiError
*/
message: string;
error: string;
/**
* Error detail, mostly validation error
* @type {string}
* @memberof ApiError
*/
detail?: string;
error_description: string;
}
/**
*
Expand Down Expand Up @@ -559,6 +553,12 @@ export interface IntrospectData {
* @memberof IntrospectData
*/
sub: number;
/**
* If the token can be used
* @type {boolean}
* @memberof IntrospectData
*/
active: boolean;
/**
*
* @type {IntrospectDataResource}
Expand Down Expand Up @@ -600,7 +600,7 @@ export type IntrospectDataResourceTypeEnum =
(typeof IntrospectDataResourceTypeEnum)[keyof typeof IntrospectDataResourceTypeEnum];

/**
*
* Details about the token beeing used
* @export
* @interface IntrospectResponse
*/
Expand Down Expand Up @@ -949,7 +949,7 @@ export interface SpaceRelationships {
components: AttachedComponents;
}
/**
*
* Definition of one specific space
* @export
* @interface SpaceResponse
*/
Expand All @@ -962,7 +962,7 @@ export interface SpaceResponse {
data: Space;
}
/**
*
* List of spaces
* @export
* @interface SpacesResponse
*/
Expand Down Expand Up @@ -2040,7 +2040,7 @@ export const PublicApiAxiosParamCreator = function (
},
/**
*
* @summary Show Participatory Spaces
* @summary Show Participatory Space
* @param {number} id
* @param {PublicManifestNameIdGetManifestNameEnum} manifestName
* @param {Array<PublicManifestNameIdGetLocalesEnum>} [locales]
Expand Down Expand Up @@ -2387,7 +2387,7 @@ export const PublicApiFp = function (configuration?: Configuration) {
},
/**
*
* @summary Show Participatory Spaces
* @summary Show Participatory Space
* @param {number} id
* @param {PublicManifestNameIdGetManifestNameEnum} manifestName
* @param {Array<PublicManifestNameIdGetLocalesEnum>} [locales]
Expand Down Expand Up @@ -2567,7 +2567,7 @@ export const PublicApiFactory = function (
},
/**
*
* @summary Show Participatory Spaces
* @summary Show Participatory Space
* @param {PublicApiPublicManifestNameIdGetRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
Expand Down Expand Up @@ -2973,7 +2973,7 @@ export class PublicApi extends BaseAPI {

/**
*
* @summary Show Participatory Spaces
* @summary Show Participatory Space
* @param {PublicApiPublicManifestNameIdGetRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
Expand Down
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@

require "rswag/specs"
require "swagger_helper"
if ENV.fetch("CI", "0") == "1"
require "simplecov-cobertura"
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
end
46 changes: 28 additions & 18 deletions website/static/api-docs.html

Large diffs are not rendered by default.

Loading

0 comments on commit e4817d4

Please sign in to comment.