Mockserver Github

; Make sure you are using a modern enough browser. AngularJS was designed with testing in mind. mockserver is a library that will help you mocking your APIs in a matter of seconds: you simply organize your mocked HTTP responses in a bunch of mock files and it will serve them like they were coming from a real API; in this way you can write your frontends without caring too much whether your backend is really ready or not. js after the Mock Server is initialized. dynamic port forwarding). Change your data source from a mock server created by BUILD to a live OData service. When a request is received to your Mock Server for a URL you’ve defined, the corresponding response for that request will be returned. toml for the requested crate anywhere inside the git repository (not necessarily at the root - for example, specifying a member crate name of a workspace and setting git to the repository containing the workspace). Having your API description on GitHub will make versioning, sharing and collaboration a lot easier. It can mock GET, POST, PUT, PATCH, DELETE and some more rarely used HTTP methods. If you're not sure which to choose, learn more about installing packages. Robot framework library for MockServer. Go monorepo or multi-repo. Swagger YAML is the primary Swagger format in Apiary. Starting our mock HTTP server is quite easy as we're just using a JUnit role here to bootstrap the server. We have also explored the different APIs provided and how it can be used for testing complex systems. A mock server is a server that is not a real server. Download the file for your platform. We track your work so you don't have to!. Apiary Tools. Cargo will fetch the git repository at this location then look for a Cargo. Download files. Being easy to deploy on the Cloud or within your datacenter, Microcks offers much more ability to scale and handle all the API and services, even the most critical to your business. If you're not sure which to choose, learn more about installing packages. I am trying to run my test classes using mvn test but I am getting errors. *Android coming soon. To create an instance of MockServer just use the factory method Create(). This allows users to fork the project and create their own versions or suggest improvements. Hello I have two spring boot modules, a mediator class and a mockserver class. apiblueprint , and the standard file extension is. I want use this call for the login, If the call return me true I stay logged also I'm not logged. module: NOTE: This function is also published on window for easy access. Click the Create button. Normal Methods; init() Method; exit() Method; Event Handler Methods; Browser Events. Examples how to mock HTTP servers for test using Java, JUnit and MockServer. Download the file for your platform. 使用nodejs + express搭建一个简易mock服务器. I'm using apiary for have a mock server, but I need to do one call that return me different response. Personal Information. It can mock GET, POST, PUT, PATCH, DELETE and some more rarely used HTTP methods. One of the best free tutorials on defining a Swagger spec begins with this introduction also by Arnaud Lauret, the API Handyman. JUnit 5 is the result of JUnit Lambda and its crowdfunding campaign on Indiegogo. With the recent release of the RAML Mocking Service I took a couple of minutes to try it out and put together this walkthrough. MockServer also includes a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i. php;如果是Nodejs,那. Moreover, you don't want to turn mockserver off during an OPA test which communicates to the backend. mockserver-maven-plugin - a maven plugin to start, stop and fork MockServer using maven mockserver-client-java - a Java client to communicate with both the server and the proxy In addition MockServer SNAPSHOT artifacts can also be found on Sonatype. What is MockServer. I am trying to run my test classes using mvn test but I am getting errors. The simplest way how you can define mocks for your REST API http://tomashanacek. Common Pitfalls in JSDoc; Tools. MockServer is an open source mocking framework for HTTP and HTTPS released under the Apache License. MockServer also includes a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i. Increasingly, more and more mobile apps rely on some kind of api/backend server to work. The docker container fully encapsulates all requirements required to run MockServer (such as Java) and separates the running MockServer instance from all other. When the mock server is enabled it will override the configuration of the CAS module to point to a simulated CAS server that is hosted within the Drupal site. Download files. func (*MockServer) BroadcastEvent ¶ Uses func (m * MockServer ) BroadcastEvent(address string , event AddressEvent , data [] byte ). Getting Started. Editor Header The Editor Header allows for customizing the editor, getting feedback about warnings or errors that may be in your API document, saving and publishing your documentation, and even pushing your document to GitHub. An API to easily mock any system or service you integrate with via HTTP or HTTPS from either Java or JavaScript. com for the full tutorial. Easy-to-use and most complete Api tool suite, include Api Design, Api (auto) Test, loading, MockServer, Recording and Replay. This testing determines whether Test Doubles (mocks) of microservices are a valid stand-in for the real service. WireMock Mock your APIs for fast, robust and comprehensive testing. To create an instance of MockServer just use the factory method Create(). mockserver is a library that will help you mocking your APIs in a matter of seconds: you simply organize your mocked HTTP responses in a bunch of mock files and it will serve them like they were coming from a real API; in this way you can write your frontends without caring too much whether your backend is really ready or not. If you're not sure which to choose, learn more about installing packages. In the following example, we're bootstrapping an instance to run on port 9000 and to return a HTTP status code of 200 when the URL part "/foo" is called. git; Copy HTTPS clone URL https://git. Download the file for your platform. RAP is a GUI interface management tool. Mocking Service walkthrough. I am performing end-to-end testing and have three stages: client sends to server A server A send a request to proxy proxy sends a request to mock-server Then mock-server returns some response tha. Mock server. It is written and maintained by the engineers at Turo. From mobile apps to microservices, from small startups to big enterprises, Gradle helps teams build, automate and deliver better software, faster. Pushy is a Java library for sending APNs (iOS, macOS, and Safari) push notifications. toml for the requested crate anywhere inside the git repository (not necessarily at the root - for example, specifying a member crate name of a workspace and setting git to the repository containing the workspace). MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby. Gitter instant messaging and chat room is used for bringing the MockServer community together. This will bind_mock_server if that was not yet initialized, then fork to accept connections. Data generated by MockServer. Some might consider it a service virtualization tool or a mock server. json and webdav. If you're not sure which to choose, learn more about installing packages. 1-jar-with-dependencies. Understanding Apiary; Swagger in Apiary; Choosing the right format; Enhancing Apiary Workflow. There is no excuse to continue committing your bug fixes with your features. It is just a fake server that is simulated to work as a real server so that we can test our APIs and check the response or errors. services, web sites, etc). Being easy to deploy on the Cloud or within your datacenter, Microcks offers much more ability to scale and handle all the API and services, even the most critical to your business. It greatly simplifies and streamlines network programming such as TCP and UDP socket server. com: bonigarcia. mockserver-node has now replaced mockserver-grunt. You can now simulate a delay by adding ?mocky-delay=100ms to your response (format / max: 60s). GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together. MockServer JUnit Tutorial. Examples how to mock HTTP servers for test using Java, JUnit and MockServer. The mediator class has the parent pom and the mockserver class has the child pom. Starting our mock HTTP server is quite easy as we’re just using a JUnit role here to bootstrap the server. Download files. The full java code from these examples are on my github. The source code of the framework is tested really well and any code written using the framework is testable too. com/typicode/json-server/ https://github. writing unit test cases for your repository project). GitHub Gist: instantly share code, notes, and snippets. dump: NOTE: This is not an injectable instance, just a globally available function. repository. Setup a githubpub instance or use the public one Add a webhook to the git repository. Click the linked icons to find out why. You can modify it to fit your test workflow and indices/data. mock server 这个目前还没有找到很合适的mock工具,包括rap也好,其他API文档工具也好,都做的不够完善,大多就是根据说明文件,例如swagger. Download files. It enables you to stay productive when an API you depend on doesn't exist or isn't complete. The open-rpc-mock-server allows developers to run and test against their APIs in a local and lightweight environment. MockServer JUnit Tutorial. Apiary provides the leading API-First platform designed specifically to help companies accelerate and control the design, development, and documentation of APIs. This is a generalisation of servant-mock. Fast and Simple Mockable is a simple configurable service to mock out RESTful API or SOAP web-services. 1BestCsharp blog 2,775,335 views. Github, Google), etc for the purpose of identification and personalized services. java -jar -serverPort. Download the file for your platform. Java Project Tutorial - Make Login and Register Form Step by Step Using NetBeans And MySQL Database - Duration: 3:43:32. The MockServer is a software component that captures AJAX requests and either answer them or let them reach the backend. If you find issues or have suggestions, please report them on github, or mail me. Simple now hosted on GitHub The source tree for Simple has move to GitHub. The docker container fully encapsulates all requirements required to run MockServer (such as Java) and separates the running MockServer instance from all other. toml for the requested crate anywhere inside the git repository (not necessarily at the root - for example, specifying a member crate name of a workspace and setting git to the repository containing the workspace). dump: NOTE: This is not an injectable instance, just a globally available function. This includes focusing on Java 8 and above, as well as enabling many different styles of testing. GitHub Gist: instantly share code, notes, and snippets. API Blueprint Mock Server. mockserver is a library that will help you mocking your APIs in a matter of seconds: you simply organize your mocked HTTP responses in a bunch of mock files and it will serve them like they were coming from a real API; in this way you can write your frontends without caring too much whether your backend is really ready or not. Launch screen. Mocking GraphQL with express-graphql. Examples how to mock HTTP servers for test using Java, JUnit and MockServer. using scrapy 0. Providing a simple, safe, and portable way to play with an API. You can use any available method in Faker. If you're not sure which to choose, learn more about installing packages. Sandbox - SaaS, self-hosted, or CLI tool for turning OpenAPI (and other) descriptions into a mock server, where you can modify behaviour, simulate downtime, and any other nonsense you can think of thanks to a built-in code editor! SaaS / Java. 1BestCsharp blog 2,775,335 views. Utilities for generating "default" server implementations for servant APIs. dump: NOTE: This is not an injectable instance, just a globally available function. It can mock GET, POST, PUT, PATCH, DELETE and some more rarely used HTTP methods. Download the file for your platform. MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby. Description. Additional matcher test examples can be found in the spring-test-mvc section of the spring 3. I comes down to the fact that a host in general has more than one IP address and the server opens only one of them: 127. MockServer allows you to mock any system you integrate with via HTTP or HTTPS (i. Getting Started Installation. Atlassian Sourcetree is a free Git and Mercurial client for Windows. 8 does not specify what processors (such as parsers, frameworks, services, etc) should do to handle this case. Friendly python client to James D. toml for the requested crate anywhere inside the git repository (not necessarily at the root - for example, specifying a member crate name of a workspace and setting git to the repository containing the workspace). Atlassian Sourcetree is a free Git and Mercurial client for Mac. mockserver-node has now replaced mockserver-grunt. YApi 是高效、易用、功能强大的 api 管理平台,旨在为开发、产品、测试人员提供更优雅的接口管理服务。可以帮助开发者轻松创建、发布、维护 API,YApi 还为用户提供了优秀的交互体验,开发人员只需利用平台提供的接口数据写入工具以及简单的点击操作就可以实现接口的管理. repository. Intro to MockServer and how to use it for testing. func NewErrorLoggingServer(s api. If you have any feedback, encounter any bugs, or just have a question, please feel free to create a github issue or send me a tweet at @thoov. Fast and Simple Mockable is a simple configurable service to mock out RESTful API or SOAP web-services. Go monorepo or multi-repo. The MockServer and MockServer Proxy can be run: via a Maven Plugin as part of a Maven build cycle. This module provides a mocked CAS server for testing purposes. Configuring the MockServer It requires the metadata to know the entities and relationships exposed by the ODATA service. This article will go over creating a mock server, the benefits of this tool, and some of the pitfalls. This is a simple mock server generator based on the Open API 3 specification. WireMock is distributed via Maven Central and can be included in your project using common build tools' dependency management. GitHub Gist: instantly share code, notes, and snippets. It's great for tutorials, testing new libraries, sharing code examples,. dynamic port forwarding. Mocking GraphQL with express-graphql. PyYAML Resources. Intro to MockServer and how to use it for testing. GitHub Gist: star and fork MrCoder's gists by creating an account on GitHub. However, if you paste Swagger JSON into the editor, it’ll be automatically transformed for you. In this example, we will listen to port 8088. Robot framework library for MockServer. This testing determines whether Test Doubles (mocks) of microservices are a valid stand-in for the real service. From what I see, its placing a OData request (not on mock server) and since you don't have the OData you are getting 404 (not found). If you use this extension your blueprints on GitHub will get syntax-highlighted. module: NOTE: This function is also published on window for easy access. Here, the org. OpenUI5 Smart MockServer uses the open source library Faker. And after run $ mock-server --dir=/path/to/api. Hi I am developing an Arquillian Extension that allow users to use some mock/stub/fake servers for their tests. See the documentation in Servant. Description. The built-in dependency injection. Additional matcher test examples can be found in the spring-test-mvc section of the spring 3. $ pip install mock-server. Download and install Fiddler for free. Generate for examples and more. For example Wire is used for smtp server. There are two schemes; One to hit production remote API, and the other to hit mock server. MockServer is designed to simplify integration testing, by mocking HTTP and HTTPS system such as a web service or web site, and to decouple development teams, by allowing a team to develop against a service that is not complete or is unstable. Check your usage limits. Quick start, tutorials and best practices. Name Email Dev Id Roles Organization; Boni Garcia: boni. Client-initiated renegotiation attack mitigation # The TLS protocol allows clients to renegotiate certain aspects of the TLS session. Some might consider it a service virtualization tool or a mock server. When the mock server is enabled it will override the configuration of the CAS module to point to a simulated CAS server that is hosted within the Drupal site. MockServer is flexible and support numerous usage patterns. If you use this extension your blueprints on GitHub will get syntax-highlighted. There is a number of places across Apigee techstack and developer's workflow where practical knowledge of PKI certificates-relevant operations in general and SSL self-signed certificates in particular is useful. mockserver is a library that will help you mocking your APIs in a matter of seconds: you simply organize your mocked HTTP responses in a bunch of mock files and it will serve them like they were coming from a real API; in this way you can write your frontends without caring too much whether your backend is really ready or not. The full java code from these examples are on my github. java -jar -serverPort. When the mock server is enabled it will override the configuration of the CAS module to point to a simulated CAS server that is hosted within the Drupal site. Please see the CLI Toolchain documentation for more details. 4 mockserver python -u -m scrapy. Hello I have two spring boot modules, a mediator class and a mockserver class. Mocking Service walkthrough. MockServer is an open source mocking framework for HTTP and HTTPS released under the Apache License. Robot framework library for MockServer. MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby. This includes focusing on Java 8 and above, as well as enabling many different styles of testing. The code shown in examples below is available in GitHub java-samples/wiremock repository. Use the forms below and your advanced search query will appear here. Go monorepo or multi-repo. I comes down to the fact that a host in general has more than one IP address and the server opens only one of them: 127. We will take our API from our last post (you can download the source code from github) and implement our own OAuth2 security. MockServer is available as a docker container that allows you to easily run MockServer as a separate container on any environment without having to install Java or any other libraries. Swagger offers the most powerful and easiest to use tools to take full advantage of the OpenAPI Specification. It's great for tutorials, testing new libraries, sharing code examples,. If you're not sure which to choose, learn more about installing packages. AngularJS was designed with testing in mind. Clone via HTTPS Clone with Git or checkout with SVN using the repository's web address. Package for deployment on any platform. $ pip install mock-server. When MockServer receives a requests it matches the request against active expectations that have been configured. Gitter instant messaging and chat room is used for bringing the MockServer community together. Quick start, tutorials and best practices. js to generate better fake data for testing your app or for a demo. Hi I am developing an Arquillian Extension that allow users to use some mock/stub/fake servers for their tests. What is MockServer. repository. Download the file for your platform. You can rebuild the Stripe API mock server from an updated OpenAPI anytime. Node module and grunt plugin to start and stop MockServer and MockServer proxy. If only I had the idea first, it could of been me who created this tool. 1:3000 router. Example of showing an alert from background thread using `Platform. Thinking about both cases, automated testing and demos, I decided to create a plugin to extend MockServer and make it return more meaningful data which has semantics and is not hard coded. Online help Learn Git Keyboard shortcuts. By signing in, you agree to have read and accepted Terms of Service. Search for API Blueprint on GitHub using the language:"API Blueprint" query. If you're not sure which to choose, learn more about installing packages. Download files. I have a multi module spring boot project using maven with a app in my mediator class and an app in my mock server class. Use the forms below and your advanced search query will appear here. mockserver-maven-plugin - a maven plugin to start, stop and fork MockServer using maven mockserver-client-java - a Java client to communicate with both the server and the proxy In addition MockServer SNAPSHOT artifacts can also be found on Sonatype. Change your data source from a mock server created by BUILD to a live OData service. Create apps with rich user interfaces for modern web business applications, responsive across browsers and devices, based on HTML5. Simple mock server for testing using Flask. Please feel free to take a look at my blog at www. json and created the model in Component. MockServer 的应⽤用与 实践 ⻬齐磊 2016年12⽉月1⽇日. No matching branches Help. It will be listening on port 8888 and wait for your HTTP requests. Regards, Vinod. Over 36 million developers use GitHub together to host and review code, project manage, and build software together across more than 100 million projects. In this blog I want to gain your attention and give an introduction to an OpenSource project I recently started a few weeks ago on GitHub. The MockServer and MockServer Proxy can be run: via a Maven Plugin as part of a Maven build cycle. Editor Header The Editor Header allows for customizing the editor, getting feedback about warnings or errors that may be in your API document, saving and publishing your documentation, and even pushing your document to GitHub. YApi 是高效、易用、功能强大的 api 管理平台,旨在为开发、产品、测试人员提供更优雅的接口管理服务。可以帮助开发者轻松创建、发布、维护 API,YApi 还为用户提供了优秀的交互体验,开发人员只需利用平台提供的接口数据写入工具以及简单的点击操作就可以实现接口的管理. Starting mockserver before OPA tests. If you're not sure which to choose, learn more about installing packages. GitHub Gist: instantly share code, notes, and snippets. Writing mocks. MockServer is an open source mocking framework for HTTP and HTTPS released under the Apache License. real services Pact is a word (not an acronym) for a family of software testing frameworks (at https://docs. Setting Mock Server; Setting Mock Server. After creating the MockServer you have to (configure)[#Configuring] the MockServer and start it. m and KMSCollectionTests. OpenUI5 Smart MockServer uses the open source library Faker. io helps you find new open source packages, modules and frameworks and keep track of ones you depend upon. com · FAQ · Contact · Privacy Policy · Terms of Service. There are many powerful mocking frameworks available why build another one? Sure frameworks like WireMock and MounteBank have a bunch of fancy features but who. In this quick article, we have explored different functions of the MockServer. Mock Server: The simplest way how you can define mocks for your REST API. 编辑mock接口的response数据 去刚刚mock的Collection打开mock的接口,点击右上角“Examples”按钮,下拉展示了基于这个接口刚刚保存的examples,点击“mock test practice”(我刚刚保存命名的example name). Download files. mockserver-node has now replaced mockserver-grunt. This node module can be used to start and stop MockServer and the MockServer proxy as a node module or as a Grunt plugin. Build status at Travis CI:. From mobile apps to microservices, from small startups to big enterprises, Gradle helps teams build, automate and deliver better software, faster. The APIMatic Integration is meant to take your Postman collections and save them to Github in a format that you choose. OpenUI5: UI Development Toolkit for HTML5. MockServer 的应⽤用与 实践 ⻬齐磊 2016年12⽉月1⽇日. Setup a githubpub instance or use the public one Add a webhook to the git repository. Introduction. To create an instance of MockServer just use the factory method Create(). Mocking service is as simple as creating directory and few files within it just like that:. Start Postman and click "New. 4以后内置的server,启动命令是 php -S 127. 0 does specify that routes must be matched. Currently the project only starts a mock-server, of course you can also have your own other mock-server or proxy interface. HTTP proxy), HTTPS Tunneling Proxying (using HTTP CONNECT) and SOCKS Proxying (i. The full java code from these examples are on my github. Over 36 million developers use GitHub together to host and review code, project manage, and build software together across more than 100 million projects. MockServer also includes a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i. Understanding Apiary; Swagger in Apiary; Choosing the right format; Enhancing Apiary Workflow. The MockServer is a software component that captures AJAX requests and either answer them or let them reach the backend. You can use any available method in Faker. GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together. VerificationTimes class is used to specify the number of times the Mock Server should match the request. See the Upgrade Guide. Also, updates will not be pushed to Github if no updates have been made to the. 4 mockserver python -u -m scrapy. You can rebuild the Stripe API mock server from an updated OpenAPI anytime. Download files. The first step we have to do is to define a set of requests we will mock. To use the mock server, import your spec into SwaggerHub and enable "API Auto Mocking". The built-in dependency injection. m and KMSCollectionTests. This code snippet allows you to use Node. Download files. Download the file for your platform. ALPN - Allows the use of one TLS server for multiple protocols (HTTP, HTTP/2) SNI - Allows the use of one TLS server for multiple hostnames with different SSL certificates. By signing in, you agree to have read and accepted Terms of Service. 0 does specify that routes must be matched. *Android coming soon. 4 mockserver python -u -m scrapy. Pushy sends push notifications using Apple’s HTTP/2-based APNs protocol and supports both TLS and token-based authentication. The tools listed here support emulating or simulating APIs and software systems. Click the Create button. thanks for comment, I wanted to show the basic working example of mockserver, because there is no mention about it at all, except from few threads (where you participated) here on scn and some not explained codes on github. Hello I have two spring boot modules, a mediator class and a mockserver class. If only I had the idea first, it could of been me who created this tool. REST Mocktest with Spring MockRestServiceServer and RestTemplate - MockTest. If you're not sure which to choose, learn more about installing packages. maximum performance (running in subprocesses): scheduler: 17000 pages/min. Running Mock Server. module: NOTE: This function is also published on window for easy access. php;如果是Nodejs,那. When MockServer receives a requests it matches the request against active expectations that have been configured. This article will go over creating a mock server, the benefits of this tool, and some of the pitfalls. See the Servant. Lifecycle of MockServer. 1-jar-with-dependencies. Apiary provides the leading API-First platform designed specifically to help companies accelerate and control the design, development, and documentation of APIs. A new version will give you a clear view of the performance of each components. JSONPlaceholder is a free online REST API that you can use whenever you need some fake data. Starting mockserver before OPA tests. Download files. The server makes it possible to test the SAP S/4HANA integration capabilities of the SAP S/4HANA Cloud SDK described in the book without access to an SAP S/4HANA system. mockserver is a library that will help you mocking your APIs in a matter of seconds: you simply organize your mocked HTTP responses in a bunch of mock files and it will serve them like they were coming from a real API; in this way you can write your frontends without caring too much whether your backend is really ready or not. The Mock Server accomplishes this by listening for requests as you've defined them in your blueprint. The expectations that configure how the MockServer will respond and to incoming requests can be setup using any language that can create JSON. The fact-checkers, whose work is more and more important for those who prefer facts over lies, police the line between fact and falsehood on a day-to-day basis, and do a great job. Today, my small contribution is to pass along a very good overview that reflects on one of Trump’s favorite overarching falsehoods. Namely: Trump describes an America in which everything was going down the tubes under  Obama, which is why we needed Trump to make America great again. And he claims that this project has come to fruition, with America setting records for prosperity under his leadership and guidance. “Obama bad; Trump good” is pretty much his analysis in all areas and measurement of U.S. activity, especially economically. Even if this were true, it would reflect poorly on Trump’s character, but it has the added problem of being false, a big lie made up of many small ones. Personally, I don’t assume that all economic measurements directly reflect the leadership of whoever occupies the Oval Office, nor am I smart enough to figure out what causes what in the economy. But the idea that presidents get the credit or the blame for the economy during their tenure is a political fact of life. Trump, in his adorable, immodest mendacity, not only claims credit for everything good that happens in the economy, but tells people, literally and specifically, that they have to vote for him even if they hate him, because without his guidance, their 401(k) accounts “will go down the tubes.” That would be offensive even if it were true, but it is utterly false. The stock market has been on a 10-year run of steady gains that began in 2009, the year Barack Obama was inaugurated. But why would anyone care about that? It’s only an unarguable, stubborn fact. Still, speaking of facts, there are so many measurements and indicators of how the economy is doing, that those not committed to an honest investigation can find evidence for whatever they want to believe. Trump and his most committed followers want to believe that everything was terrible under Barack Obama and great under Trump. That’s baloney. Anyone who believes that believes something false. And a series of charts and graphs published Monday in the Washington Post and explained by Economics Correspondent Heather Long provides the data that tells the tale. The details are complicated. Click through to the link above and you’ll learn much. But the overview is pretty simply this: The U.S. economy had a major meltdown in the last year of the George W. Bush presidency. Again, I’m not smart enough to know how much of this was Bush’s “fault.” But he had been in office for six years when the trouble started. So, if it’s ever reasonable to hold a president accountable for the performance of the economy, the timeline is bad for Bush. GDP growth went negative. Job growth fell sharply and then went negative. Median household income shrank. The Dow Jones Industrial Average dropped by more than 5,000 points! U.S. manufacturing output plunged, as did average home values, as did average hourly wages, as did measures of consumer confidence and most other indicators of economic health. (Backup for that is contained in the Post piece I linked to above.) Barack Obama inherited that mess of falling numbers, which continued during his first year in office, 2009, as he put in place policies designed to turn it around. By 2010, Obama’s second year, pretty much all of the negative numbers had turned positive. By the time Obama was up for reelection in 2012, all of them were headed in the right direction, which is certainly among the reasons voters gave him a second term by a solid (not landslide) margin. Basically, all of those good numbers continued throughout the second Obama term. The U.S. GDP, probably the single best measure of how the economy is doing, grew by 2.9 percent in 2015, which was Obama’s seventh year in office and was the best GDP growth number since before the crash of the late Bush years. GDP growth slowed to 1.6 percent in 2016, which may have been among the indicators that supported Trump’s campaign-year argument that everything was going to hell and only he could fix it. During the first year of Trump, GDP growth grew to 2.4 percent, which is decent but not great and anyway, a reasonable person would acknowledge that — to the degree that economic performance is to the credit or blame of the president — the performance in the first year of a new president is a mixture of the old and new policies. In Trump’s second year, 2018, the GDP grew 2.9 percent, equaling Obama’s best year, and so far in 2019, the growth rate has fallen to 2.1 percent, a mediocre number and a decline for which Trump presumably accepts no responsibility and blames either Nancy Pelosi, Ilhan Omar or, if he can swing it, Barack Obama. I suppose it’s natural for a president to want to take credit for everything good that happens on his (or someday her) watch, but not the blame for anything bad. Trump is more blatant about this than most. If we judge by his bad but remarkably steady approval ratings (today, according to the average maintained by 538.com, it’s 41.9 approval/ 53.7 disapproval) the pretty-good economy is not winning him new supporters, nor is his constant exaggeration of his accomplishments costing him many old ones). I already offered it above, but the full Washington Post workup of these numbers, and commentary/explanation by economics correspondent Heather Long, are here. On a related matter, if you care about what used to be called fiscal conservatism, which is the belief that federal debt and deficit matter, here’s a New York Times analysis, based on Congressional Budget Office data, suggesting that the annual budget deficit (that’s the amount the government borrows every year reflecting that amount by which federal spending exceeds revenues) which fell steadily during the Obama years, from a peak of $1.4 trillion at the beginning of the Obama administration, to $585 billion in 2016 (Obama’s last year in office), will be back up to $960 billion this fiscal year, and back over $1 trillion in 2020. (Here’s the New York Times piece detailing those numbers.) Trump is currently floating various tax cuts for the rich and the poor that will presumably worsen those projections, if passed. As the Times piece reported: