Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

ws-tests.proto 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // SonarQube, open source software quality management tool.
  2. // Copyright (C) 2008-2016 SonarSource
  3. // mailto:contact AT sonarsource DOT com
  4. //
  5. // SonarQube is free software; you can redistribute it and/or
  6. // modify it under the terms of the GNU Lesser General Public
  7. // License as published by the Free Software Foundation; either
  8. // version 3 of the License, or (at your option) any later version.
  9. //
  10. // SonarQube is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. // Lesser General Public License for more details.
  14. //
  15. // You should have received a copy of the GNU Lesser General Public License
  16. // along with this program; if not, write to the Free Software Foundation,
  17. // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18. syntax = "proto2";
  19. package sonarqube.ws.tests;
  20. import "ws-commons.proto";
  21. option java_package = "org.sonarqube.ws";
  22. option java_outer_classname = "Tests";
  23. option optimize_for = SPEED;
  24. // WS api/tests/list
  25. message ListResponse {
  26. optional sonarqube.ws.commons.Paging paging = 1;
  27. repeated Test tests = 2;
  28. }
  29. // WS api/tests/covered_files
  30. message CoveredFilesResponse {
  31. repeated CoveredFile files = 1;
  32. message CoveredFile {
  33. optional string id = 1;
  34. optional string key = 2;
  35. optional string longName = 3;
  36. optional int32 coveredLines = 4;
  37. optional string branch = 5;
  38. optional string pullRequest = 6;
  39. }
  40. }
  41. message Test {
  42. optional string id = 1;
  43. optional string name = 2;
  44. optional string fileId = 3;
  45. optional string fileKey = 4;
  46. optional string fileName = 5;
  47. optional TestStatus status = 6;
  48. optional int64 durationInMs = 7;
  49. optional int32 coveredLines = 8;
  50. optional string message = 9;
  51. optional string stacktrace = 10;
  52. optional string fileBranch = 11;
  53. optional string filePullRequest = 12;
  54. }
  55. enum TestStatus {
  56. OK = 1;
  57. FAILURE = 2;
  58. ERROR = 3;
  59. SKIPPED = 4;
  60. }